<?php

class Lib_FlashSMS_Config
{
    //短信黑名单
    public static $black_mobile = array(

    );

    public static $sms_pass = array(
        'Chuanglan'     => '创蓝',
        'Tongxing'     => '通行',
    );

    public static $sms_sign = array(
        1=>'【广州市海珠区大有商事调解中心】',
    );
    public static $sms_content = array(
        1=>'给您致电，请放心接听！',
    );
    //通道配置
    public static $conf_pass = array(
        array(
            'name' => '创蓝',
            'val' => 'Chuanglan',
            'accounts' => array(
                'url' => 'http://smssh1.253.com/msg/v1/send/json',
                'account' => 'N2219230',
                'password' => 'Lkl13Kufbbfd71',
            )
        ),
        array(
            'name' => '通行',
            'val' => 'Tongxing',
            'accounts' => array(
                'url' => 'http://47.106.81.143:8001/sms/api/sendMessageOne',
                'userName' => '20241213',
                'password' => 'mAUiMsmEW7mL',
            )
        ),
    );
    //使用的通道
    public static $use_pass = [
//        'pass' => 'Chuanglan',
//        'sign' => 1,
//        'content' => 1,
        'pass' => 'Tongxing',
        'sign' => 1,
        'content' => 1,
    ];

    public static function get_pass($passKey)
    {
        if (isset($passKey)) {
            $list = self::$conf_pass;
            foreach ($list as $k => $v) {
                if ($v['val'] == $passKey) {
                    $list = $list[$k];
                }
            }
        }
        return $list;
    }

}
